package qx.hyj.demos.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import qx.hyj.demos.enums.ErrorCode;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "书实体")
public class Book {
    @ApiModelProperty(value = "id")
    private Integer id;
    @ApiModelProperty(value = "书名")
    private String title;
    @ApiModelProperty(value = "作者")
    private String author;
    @ApiModelProperty(value = "库存")
    private int stock;
    @ApiModelProperty(value = "状态")
    private ErrorCode status;
}
